package com.sky.controller.user;

import com.sky.result.Result;
import com.sky.service.ShopService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

/**
 * @Description ShopController
 * @Author zhuzi
 * @Date 2023/09/26
 */
@RequestMapping("/user/shop")
@RequiredArgsConstructor
@RestController("userShopController")
@Slf4j
public class ShopController {

    private final ShopService shopService;

    /**
     * 获取店铺的营业状态
     *
     * @return
     */
    @GetMapping("/status")
    public Result<Integer> getStatus() {
        return Result.success(shopService.getShopStatus());
    }

}
